﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Ef
{
    public class Student
    {
        public string Name { get; set; }
        public int Id { get; set; }
    }

    public class Course
    {
        public int Id { get; set; }

        public string Name { get; set; }
    }

    public class StudentCourse
    {
        [ForeignKey("StudentId")]
        public Student Student { get; set; }

        [ForeignKey("CourseId")]
        public Course Course { get; set; }
    }
}
